GET_PROPERTY(ph TARGET odbccpp PROPERTY public_headers)
LIST(TRANSFORM ph PREPEND src/odbc/)

SET(DOXYGEN_STRIP_FROM_PATH "src")
SET(DOXYGEN_STRIP_FROM_INC_PATH "src")
SET(DOXYGEN_MACRO_EXPANSION "YES")
SET(DOXYGEN_PREDEFINED
    "ODBC_EXPORTS="
    "NS_ODBC_START=\"namespace odbc {\""
    "NS_ODBC_END=}")
SET(DOXYGEN_VERBATIM_VARS DOXYGEN_PREDEFINED)
DOXYGEN_ADD_DOCS(doc
    doc/overview.dox
    ${ph}
    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
